using Senparc.Weixin.MP.AdvancedAPIs.AutoReply;
using Senparc.Weixin.MP.CommonAPIs;
using System;
namespace Senparc.Weixin.MP.AdvancedAPIs
{
	public static class AutoReplyApi
	{
		public static GetCurrentAutoreplyInfoResult GetCurrentAutoreplyInfo(string accessTokenOrAppId)
		{
			return ApiHandlerWapper.TryCommonApi<GetCurrentAutoreplyInfoResult>(delegate(string accessToken)
			{
				string urlFormat = "https://api.weixin.qq.com/cgi-bin/current_autoreply_info?access_token={0}";
				return CommonJsonSend.Send<GetCurrentAutoreplyInfoResult>(accessToken, urlFormat, null, CommonJsonSendType.GET, 10000, false);
			}, accessTokenOrAppId, true);
		}
	}
}
